<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录、注册接口_半步网接口开发说明文档</title>
<style>
body{line-height:22px;}
a{color:#06F;text-decoration:none;}
.smalltitle{color:#00F}
</style>
</head>

<body>
<table width="950" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td height="32" align="center"><strong><a href="interface.html">半步网接口开发说明文档</a></strong></td>
  </tr>
  <tr>
    <td bgcolor="#EEEEEE">//发送一条动态(广播)</td>
  </tr>
  <tr>
    <td><em><strong>网址</strong></em>　<span class="smalltitle">http://www.halfeet.com/_broad_cast/_send_broad_cast.php?jsonfrom=</span><br>
      <em><strong>参数　</strong></em>{&quot;fc&quot;:&quot;<span class="smalltitle">send_broad_cast</span>&quot;,&quot;loginid&quot;:&quot;120627-201459-FB4-5AD4-7FD9F2A1A0DA&quot;,&quot;says&quot;:&quot;base64后的json数据&quot;}<br>
      <em><strong>返回　</strong></em>{&quot;fc&quot;:&quot;<span class="smalltitle">send_broad_cast</span>&quot;,&quot;ok&quot;:&quot;y&quot;}<br />
      <br />loginid为用户登录ID<br />
replyid为正在回复的该条动态的ID <br />
says为嵌套数据，值为动态(广播)的具体内容<br />
      <span style="color:green;">　　-&gt; saytext值为正文的文字信息<br />
　　-&gt; attach值为嵌套信息，是本条动态的附件列表<br />
　　　　-&gt; type值为image/sound等<br />
　　　　-&gt; content值为附件文件的完整URL网址</span><br> 
<span style="color:#999">例：{&quot;saytext&quot;:&quot;hello, 我是冠军&quot;, &quot;attach&quot;:[]}
<br />
例：{&quot;saytext&quot;:&quot;hello, 我是冠军&quot;, &quot;attach&quot;:[{&quot;type&quot;:&quot;image&quot;, &quot;content&quot;:&quot;http://xxxxxx/abcd.jpg&quot;}, {&quot;type&quot;:&quot;sound&quot;, &quot;content&quot;:&quot;http://xxxx/abc.mp3&quot;}]} </span><br />
ok值为y表示返回，为n表示无返回</td>
  </tr>
  <tr>
    <td bgcolor="#EEEEEE">//返回一条动态(广播)<span style="color:red;"></span>及回复列表</td>
  </tr>
  <tr>
    <td><p><em><strong>网址</strong></em>　<span class="smalltitle">http://www.halfeet.com/_broad_cast/_get_broadcast_byid.php?jsonfrom=</span><br />
        <em><strong>参数</strong></em>　{&quot;fc&quot;:&quot;<span class="smalltitle">get_broadcast_byid.</span>&quot;,&quot;loginid&quot;:&quot;120627-201459-FB6B7994-F5FB-E1F6-5AD4-7FD9F2A1A0DA&quot;,&quot;castid&quot;:&quot;113199230&quot;}<br />
        <em><strong>返回</strong></em>　{&quot;fc&quot;:&quot;<span class="smalltitle">get_broadcast_byid</span>&quot;,&quot;ok&quot;:&quot;y&quot;,&quot;mtime&quot;:&quot;26分钟前&quot;,&quot;mlong&quot;:&quot;118331400&quot;,&quot;mlat&quot;:&quot;40199230&quot;,&quot;uid&quot;:&quot;1060&quot;,&quot;pname&quot;:&quot;袁俊&quot;,&quot;uface&quot;:&quot;192.168.1.104/photo-user-face/2012_07_30_16/120730-164752-4934BDA3-8D77-D90E-15DA-45548731433E_c.jpg&quot;,&quot;content&quot;:&quot;base64后的json数据&quot;,&quot;comments&quot;:&quot;0&quot;,&quot;replylist&quot;:[]}<br />
      <br />
      loginid值为用户登录ID<br />
      castid值为动态广播的ID<br />
      <br />
      ok值为y表示返回成功，值为n表示返回不成功<br />
      content值为嵌套数据<br />
      <span style="color:green;">　　-&gt; saytext值为正文的文字信息<br />
　　-&gt; attach值为嵌套信息，是本条动态的附件列表<br />
　　　　-&gt; type值为image/sound等<br />
　　　　-&gt; content值为附件文件的完整URL网址</span><br />-&gt; pname是personname缩写，值为对方用户的昵称 <br />
      -&gt; uface是userface缩写，值为对方用户的头像完整路径，含http://<br />      -&gt; mtime是messagetime缩写，值为动态发生的时间<br />
      -&gt; mlong是messagelong缩写，值为动态发生的经度坐标<br />
      -&gt; mlat是messagelat缩写，值为动态发生的纬度坐标<br />      
      -&gt; comments是本条动态的被评论次数<br />
      <br />
      replylist值为嵌套数据<br />
      　　-&gt;mtime值为回复时间<br />
      　　-&gt;uid值为回复人的ID<br />
       　　-&gt;pname值为回复人昵称<br />
       　　-&gt;uface值为回复人的头像完整路径，含http://<br /> 
       　　-&gt;content值为嵌套数据，同上<br />
      <span style="color:green;">　　　　-&gt; saytext值为正文的文字信息<br />
　　　　-&gt; attach值空，回复限文本内容，不含多媒体</span><br />
<span style="color:#999">例：{&quot;mtime&quot;:&quot;7分钟前&quot;,&quot;uid&quot;:&quot;1060&quot;,&quot;pname&quot;:&quot;袁俊&quot;,&quot;uface&quot;:&quot;http://192.168.1.104/photo-user-face/2012_07_30_16/120730-164752-4934BDA3-8D77-D90E-15DA-45548731433E_c.jpg&quot;,&quot;content&quot;:&quot;eydzYXl0ZXh0Jzon6L+Z5piv55S755qE56We6ams77yfJywnYXR0YWNoJzpbXX0=&quot;} </span></p></td>
  </tr>
  <tr>
    <td bgcolor="#EEEEEE">//回复一条动态(广播)</td>
  </tr>
  <tr>
    <td><em><strong>网址</strong></em>　<span class="smalltitle">http://www.halfeet.com/_broad_cast/_reply_broad_cast.php?jsonfrom=</span><br />
      <em><strong>参数　</strong></em>{&quot;fc&quot;:&quot;<span class="smalltitle">reply_broad_cast</span>&quot;,&quot;loginid&quot;:&quot;20120627201459-FB6B7994-F5FB-E1F6-5AD4-7FD9F2A1A0DA&quot;,&quot;replyid&quot;:&quot;2634723-47324526-3452346&quot;,&quot;says&quot;:&quot;&quot;}<br />
      <em><strong>返回　</strong></em>{&quot;ok&quot;:&quot;y&quot;}<br />
      <br />
      loginid为用户登录ID<br /> 
      replyid为正在回复的该条动态的ID
<br />      
      says为嵌套数据，值为动态(广播)的具体内容<br />
      <span style="color:green;">　　-&gt; saytext值为正文的文字信息<br />
      </span><span style="color:#999">例：{&quot;saytext&quot;:&quot;hello, 我是冠军&quot;} <br />
      </span><br />
    ok值为y表示返回，为n表示无返回</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="#FFCC00">//******附近动态广播，好友动态广播接口*****</td>
  </tr>
  <tr>
    <td align="center"><a href="index.html">返回首页</a></td>
  </tr>
</table>
</body>
</html>
